/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.creational.prototype;

import java.util.Date;

/**
 *
 * @author BassonCJ
 */
public class PrototypeFactory {
    private static PrototypeFactory prototypeFactory = null;
    
    private PrototypeFactory(){
        
    }
    
    public synchronized static PrototypeFactory getInstance(){
        if(prototypeFactory == null){
            prototypeFactory = new PrototypeFactory();
        }
        return prototypeFactory;
    }
    
    public Date getDate(){
        return new Date();
    }
    
    public CloneFemaleFactory getCloneFemaleFactory(){
        return new CloneFemaleFactory();
    }
    
    public FemaleFactory getFemaleFactory(){
        return new FemaleFactory();
    }
}
